<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: Reimu
  Date: 2022/5/27
  Time: 17:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@page import="icu.ikuns.nine.Book" %>
<%@ page import="java.util.List" %>
<html>
<head>
    <title>Title</title>
    <style>
        table,tr,td {
            border: 1px solid brown;
        }
    </style>
</head>
<body>
<%
    List<Book> books = new ArrayList<Book>();
    Book book1 = new Book("978-1235112341", "Java 7", 45.00);
    Book book2 = new Book("978-512351234312", "Strust2", 49.89);
    Book book3 = new Book("978-413451341454", "Dimensional", 39.99);
    books.add(book1);
    books.add(book2);
    books.add(book3);
    request.setAttribute("books", books);
%>
Books in Simple Table
<table>
    <tr><td>ISBN</td><td>Title</td><td>Price</td></tr>
    <c:forEach items="${books}" var="book">
        <tr><td>${book.isbn}</td><td>${book.title}</td><td>${book.price}</td></tr>
    </c:forEach>
</table>
</body>
</html>
